// src/app/api/admin/route.ts
import {NextResponse} from "next/server";
import {currentRole} from "@/lib/auth";
import {UserRole} from "@/lib/types";

export async function GET(req: Request, res: Response) {
    const role = await currentRole()
    if (role === UserRole.ADMIN) {
        return new NextResponse(null, {status: 200})
    }

    return new NextResponse(null, {status: 403})
}